<#import "Macro.ftl" as util>
<html>
  <head>
    <link href="te.css" rel="stylesheet" type="text/css">
    <title>Testability Explorer Report for class: ${name}</title>
  </head>
<body>
<#include "Header.html">
[ <a href="index.html">Project</a> ] |
[ <a href="package_${parent}.html">${parent}</a> ]
<h2>Class: <tt>${name}</tt></h2>
<@util.overview report=self name="Class" listName="Method"/>
<br>
<@util.unitList list=unitCosts name="Method" keys=["totalCost", "directCost"] headers=["Total Cost", "Direct Cost"]; method>
#${method.lineNumber}
</@util.unitList>
<br>
<table class="source" cellspacing="0" cellpadding="0">
  <tr>
    <td class="head">Line&nbsp;No:</td>
    <td class="head">Cost</td>
    <td class="head">Source Code</td>
  </tr>
  <#list source.lines as line>
    <#list line.methodCosts as method>
      <tr>
        <td class="ln"><a name="${line.lineNumber}"/>&nbsp;</td>
        <td nowrap class="summary" ${util.color(computeOverallCost(method.totalCost))}>Cost: ${computeOverallCost(method.totalCost)} [${method.totalCost}]&nbsp;</td>
        <td class="summary" ${util.color(computeOverallCost(method.totalCost))}>${method.methodName}<br>
          Total ${printCost(method.totalCost)}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
          Direct ${printCost(method.cost)}&nbsp;
        </td>
      </tr>
      <#list method.implicitViolationCosts as violation>
        <tr>
          <td class="ln"><a name="${line.lineNumber}"/>&nbsp;</td>
          <td nowrap class="score implicit">${violation.cost.toHtmlReportString()}</td>
          <td class="implicit code">${violation}</td>
        </tr>
      </#list>
    </#list>
    <tr>
      <td class="ln"><a name="${line.lineNumber}"/>${line.lineNumber}</td>
      <td nowrap class="score">${line.score}&nbsp;</td>
      <td nowrap class="code">${util.code(line.text)}&nbsp;</td>
    </tr>
  </#list>
</table>
<#include "Footer.html">
</body>
</html>